<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/stream/StreamByte.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_090521d29e73b40f7fc0a63254d8965e.html">stream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">StreamByte.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_stream_byte_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __STREAMchar_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __STREAMchar_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;../thread/SharedPtr.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// #ifdef USE_LIBTOOLS</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// #pragma warning(disable:4251)</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// #endif // USE_LIBTOOLS</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_c_stream_iteator.html">   11</a></span>&#160;<span class="keyword">class </span><a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;{</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>(<span class="keywordtype">char</span>* b, <span class="keywordtype">char</span>* e);</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> size() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* cbegin() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* cend() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">char</span>* begin();</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">char</span>* end();</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_c_stream_iteator.html#a0b71495cd931b33334f1c1fe3f5f1787">   33</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="class_c_stream_iteator.html#a0b71495cd931b33334f1c1fe3f5f1787">_beg</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_c_stream_iteator.html#a87ac0d95049747df7fe2a7b51662aa8e">   34</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="class_c_stream_iteator.html#a87ac0d95049747df7fe2a7b51662aa8e">_end</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;};</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="class_c_stream_buffer.html">   40</a></span>&#160;<span class="keyword">class </span><a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a> :<span class="keyword">public</span> <a class="code" href="class_c_stream_iteator.html">CStreamIteator</a></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>();</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>(<span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>(<span class="keyword">const</span> <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>&amp; st);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#ifdef STD11</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>(<a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>&amp;&amp; st);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>();</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign(<span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> reserve(<span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> capacity() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">char</span>* data();</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="class_c_stream_iteator.html#ade5aeae600da801ff23baeb56d99c249">begin</a>();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_c_stream_iteator.html#a0099f615b4deffd3273c9c4d7cae4a91">cbegin</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="class_c_stream_iteator.html#ae048daef59e1657314660005959e88e7">end</a>();</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_c_stream_iteator.html#abd398f0c306bb0d8090328abdf29580a">cend</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="class_c_stream_iteator.html#ac1a4325cec7f2bdbcf0f32684e0d12d8">size</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> swap(<a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>&amp; st);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">void</span>* copy_mem(<span class="keyword">const</span> <span class="keywordtype">void</span>* dst, <span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">char</span>&amp; operator[](<span class="keywordtype">int</span> pos);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">char</span> operator[](<span class="keywordtype">int</span> pos) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>&amp; operator= (<span class="keyword">const</span> <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>&amp; st);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#ifdef STD11</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>&amp; operator= (<a class="code" href="class_c_stream_buffer.html">CStreamBuffer</a>&amp;&amp; st);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> clear();</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_c_stream_buffer.html#a101b52acd1aa627d6c5b1c5142e83731">   92</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="class_c_stream_buffer.html#a101b52acd1aa627d6c5b1c5142e83731">_data</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_c_stream_buffer.html#a5401559e6e6a78fd0a7f6613368ac2b0">   93</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="class_c_stream_buffer.html#a5401559e6e6a78fd0a7f6613368ac2b0">_size</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_c_stream_buffer.html#ad7cf1ca44456ef1435250109cee1bee5">   94</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="class_c_stream_buffer.html#ad7cf1ca44456ef1435250109cee1bee5">_max</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;};</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_stream_iteator_html_a87ac0d95049747df7fe2a7b51662aa8e"><div class="ttname"><a href="class_c_stream_iteator.html#a87ac0d95049747df7fe2a7b51662aa8e">CStreamIteator::_end</a></div><div class="ttdeci">char * _end</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00034">StreamByte.h:34</a></div></div>
<div class="ttc" id="aclass_c_stream_buffer_html_a5401559e6e6a78fd0a7f6613368ac2b0"><div class="ttname"><a href="class_c_stream_buffer.html#a5401559e6e6a78fd0a7f6613368ac2b0">CStreamBuffer::_size</a></div><div class="ttdeci">size_t _size</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00093">StreamByte.h:93</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html"><div class="ttname"><a href="class_c_stream_iteator.html">CStreamIteator</a></div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00011">StreamByte.h:11</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html_ade5aeae600da801ff23baeb56d99c249"><div class="ttname"><a href="class_c_stream_iteator.html#ade5aeae600da801ff23baeb56d99c249">CStreamIteator::begin</a></div><div class="ttdeci">virtual char * begin()</div><div class="ttdoc">返回序列开始位置</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8cpp_source.html#l00031">StreamByte.cpp:31</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="atools_8h_html_a64152c8b939d1ce06c7c5cb6c97b62f8"><div class="ttname"><a href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a></div><div class="ttdeci">#define LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00095">tools.h:95</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html_a0b71495cd931b33334f1c1fe3f5f1787"><div class="ttname"><a href="class_c_stream_iteator.html#a0b71495cd931b33334f1c1fe3f5f1787">CStreamIteator::_beg</a></div><div class="ttdeci">char * _beg</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00033">StreamByte.h:33</a></div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html_abd398f0c306bb0d8090328abdf29580a"><div class="ttname"><a href="class_c_stream_iteator.html#abd398f0c306bb0d8090328abdf29580a">CStreamIteator::cend</a></div><div class="ttdeci">virtual const char * cend() const</div><div class="ttdoc">返回序列结束位置</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8cpp_source.html#l00026">StreamByte.cpp:26</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html_ae048daef59e1657314660005959e88e7"><div class="ttname"><a href="class_c_stream_iteator.html#ae048daef59e1657314660005959e88e7">CStreamIteator::end</a></div><div class="ttdeci">virtual char * end()</div><div class="ttdoc">返回序列结束为止</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8cpp_source.html#l00036">StreamByte.cpp:36</a></div></div>
<div class="ttc" id="aclass_c_stream_buffer_html"><div class="ttname"><a href="class_c_stream_buffer.html">CStreamBuffer</a></div><div class="ttdoc">buffer类</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00040">StreamByte.h:40</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html_ac1a4325cec7f2bdbcf0f32684e0d12d8"><div class="ttname"><a href="class_c_stream_iteator.html#ac1a4325cec7f2bdbcf0f32684e0d12d8">CStreamIteator::size</a></div><div class="ttdeci">virtual size_t size() const</div><div class="ttdoc">返回序列字节大小</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8cpp_source.html#l00016">StreamByte.cpp:16</a></div></div>
<div class="ttc" id="aclass_c_stream_iteator_html_a0099f615b4deffd3273c9c4d7cae4a91"><div class="ttname"><a href="class_c_stream_iteator.html#a0099f615b4deffd3273c9c4d7cae4a91">CStreamIteator::cbegin</a></div><div class="ttdeci">virtual const char * cbegin() const</div><div class="ttdoc">返回序列开始位置</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8cpp_source.html#l00021">StreamByte.cpp:21</a></div></div>
<div class="ttc" id="aclass_c_stream_buffer_html_a101b52acd1aa627d6c5b1c5142e83731"><div class="ttname"><a href="class_c_stream_buffer.html#a101b52acd1aa627d6c5b1c5142e83731">CStreamBuffer::_data</a></div><div class="ttdeci">char * _data</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00092">StreamByte.h:92</a></div></div>
<div class="ttc" id="aclass_c_stream_buffer_html_ad7cf1ca44456ef1435250109cee1bee5"><div class="ttname"><a href="class_c_stream_buffer.html#ad7cf1ca44456ef1435250109cee1bee5">CStreamBuffer::_max</a></div><div class="ttdeci">size_t _max</div><div class="ttdef"><b>Definition:</b> <a href="_stream_byte_8h_source.html#l00094">StreamByte.h:94</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
